home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Blogowanie poza sfera
/
Flock 0.9.1.3 stable
/
flock-0.9.1.3.en-US.win32.exe
/
flock
/
res
/
detect
/
flickr.xml
< prev
next >
Wrap
Extensible Markup Language
|
2007-10-12
|
7KB
|
215 lines
<?xml version="1.0" encoding="utf-8"?>
<service name="flickr"
version="$Id: flickr.xml 14068 2007-08-09 18:57:56Z chris $"
xmlns="http://www.flock.com/web-detective#">
<strings>
<string name="domains" value="flickr.com,yahoo.com"/>
<string name="userlogin">
<![CDATA[http://flickr.com/signin/]]>
</string>
<string name="privatemessage">
<![CDATA[http://www.flickr.com/messages_write.gne]]>
</string>
<string name="userprofile">
<![CDATA[http://www.flickr.com/people/%accountid%/]]>
</string>
<string name="editprofile">
<![CDATA[http://www.flickr.com/profile_edit.gne]]>
</string>
<string name="relationship">
<![CDATA[http://www.flickr.com/relationship.gne?id=%accountid%]]>
</string>
<string name="userphotos">
<![CDATA[http://www.flickr.com/photos/%accountid%/]]>
</string>
<string name="photopage">
<![CDATA[http://www.flickr.com/photos/%accountid%/%photoid%/]]>
</string>
<string name="commentsreceivedRSS">
<![CDATA[http://api.flickr.com/services/feeds/activity.gne?id=%accountid%&format=rss_200]]>
</string>
<string name="commentrepliesRSS">
<![CDATA[http://api.flickr.com/services/feeds/photos_comments.gne?user_id=%accountid%&format=rss_200]]>
</string>
<string name="staticimage">
<![CDATA[http://static.flickr.com/%server%/%photoid%_%secret%%size%.jpg]]>
</string>
</strings>
<sessioncookies>
<cookie host=".flickr.com" name="cookie_accid" path="/"/>
<cookie host=".flickr.com" name="cookie_epass" path="/"/>
<cookie host=".flickr.com" name="cookie_session" path="/"/>
<cookie host=".flickr.com" name="use_master_until" path="/"/>
</sessioncookies>
<detect type="login"><!-- Yahoo! login with username text field -->
<url><host equals="login.yahoo.com"/></url>
<form>
<xpath name="username" extract="value">
<![CDATA[[@name="login_form"]//input[@id="username"][@type="text"]]]>
</xpath>
<xpath name="password" extract="value">
<![CDATA[//input[@id="passwd"]]]>
</xpath>
</form>
</detect>
<detect type="login"><!-- Yahoo! login with hidden username field -->
<url><host equals="login.yahoo.com"/></url>
<form>
<xpath name="username" extract="value">
<![CDATA[[@name="login_form"]//input[@name=".slogin"][@type="hidden"]]]>
</xpath>
<xpath name="password" extract="value">
<![CDATA[//input[@id="passwd"]]]>
</xpath>
</form>
</detect>
<detect type="login"><!-- Old Skool Flickr login -->
<url domain="flickr.com"><path contains="signin/"/></url>
<form>
<xpath name="username" extract="value">
<![CDATA[[@name="flickrloginform"]//input[@id="first_field"]]]>
</xpath>
<xpath name="password" extract="value">
<![CDATA[//input[@name="password"]]]>
</xpath>
</form>
</detect>
<detect type="signup">
<url><host equals="edit.yahoo.com"/><path contains="/config/eval_register"/></url>
<form>
<field tagname="input" name="login" extractas="username"/>
<field tagname="input" name=".pw" type="password" extractas="password"/>
</form>
</detect>
<detect type="loggedin">
<url domain="flickr.com"/>
<xpath><![CDATA[//div[@id="TopBar"]//td[@class="Status"]//a[@href="/account"]]]></xpath>
</detect>
<detect type="loggedin">
<url domain="flickr.com"><path contains="/welcome/hello"/></url>
<regexp><![CDATA[/<h1>OK. You're all set, /]]></regexp>
</detect>
<detect type="loggedout">
<url domain="flickr.com"/>
<xpath><![CDATA[//div[@id="TopBar"]//td[@class="Status"]//a[@href="/signin/"]]]></xpath>
</detect>
<detect type="loggedout">
<cookie nomatch="true" host=".flickr.com" name="cookie_session"/>
<cookie nomatch="true" host=".flickr.com" name="cookie_epass"/>
</detect>
<detect type="accountinfo">
<results>
<regexp re1="accountid">
<![CDATA[/global_nsid = '(.+)'/]]>
</regexp>
<regexp re1="username">
<![CDATA[/global_name ='(.+)'/]]>
</regexp>
<regexp re1="avatarURL">
<![CDATA[/global_icon_url ='(.+)'/]]>
</regexp>
</results>
</detect>
<detect type="person">
<url domain="flickr.com">
<path contains="photos/" />
</url>
<regexp re1="userid">
<![CDATA[/send.photostream=(.*)"..img/]]>
</regexp>
<regexp re1="username">
<![CDATA[/var alias = '(.*)';/]]>
</regexp>
</detect>
<detect type="person">
<url domain="flickr.com"><path contains="photos/"/></url>
<regexp re1="userid" re2="username">
<![CDATA[/photos_public\.gne\?id=([^&"]+)&.+Subscribe to (.+)'s? photos/]]>
</regexp>
</detect>
<detect type="person">
<url domain="flickr.com"><path contains="photos/"/></url>
<regexp re1="userid" re2="username">
<![CDATA[/contextLink_stream(.+)">(.+)'s photostream/]]>
</regexp>
</detect>
<detect type="person">
<url domain="flickr.com"><path contains="people/"/></url>
<regexp re1="userid">
<![CDATA[/messages_write\.gne\?to=(.+?)"/]]>
</regexp>
<regexp re1="username">
<![CDATA[/<span class="nickname">(.+)</]]>
</regexp>
</detect>
<detect type="pool">
<url domain="flickr.com"><path contains="groups/"/></url>
<conditions>
<regexp><![CDATA[/Subscribe to .+ discussion threads/]]></regexp>
</conditions>
<results>
<regexp re1="groupname">
<![CDATA[/Subscribe to (.+) discussion threads/]]>
</regexp>
<regexp re1="groupid">
<![CDATA[/\/groups_members\.gne\?id=([^"&]+)/]]>
</regexp>
</results>
</detect>
<detect type="pool">
<url domain="flickr.com"/>
<regexp re1="groupname">
<![CDATA[/<a href="\/groups\/[^\/]+\/">([^<]+)</]]>
</regexp>
<regexp re1="groupid">
<![CDATA[/\/groups_members[^\.]*\.gne\?id=([^"&]+)/]]>
</regexp>
</detect>
<detect type="pool">
<regexp re1="groupid" re2="groupname">
<![CDATA[/id="contextLink_pool([^"]+)">(.+) \(Pool\)<\/a>/]]>
</regexp>
</detect>
<detect type="apiAuth1">
<conditions>
<regexp><![CDATA[/value="OK, I'LL ALLOW IT"/]]></regexp>
</conditions>
<results>
<regexp re1="magic_cookie">
<![CDATA[/name="magic_cookie" value="(\w+)"/]]>
</regexp>
<regexp re1="api_sig">
<![CDATA[/name="api_sig" value="(\w+)"/]]>
</regexp>
</results>
</detect>
<detect type="apiAuth2">
<regexp><![CDATA[/<p class="Confirm">Success!<\/p>/]]></regexp>
</detect>
<detect type="apiAuth3">
<regexp><![CDATA[/<a href="\/account" /]]></regexp>
</detect>
</service>